#【练习】固定数值计算
def num_info():
    num=[1,2,3,4,5,6,7,8,9]
    length=len(num)
    sum=0
    max=num[0]
    min=num[0]
    for i in num:
        sum+=i
        if i>max:
            max=i
        if i<min:
            min=i
    avg=sum/length
    print("最小值:",min)
    print("最大值:",max)
    print("和:",sum)
    print("平均值:",avg)

num_info()

